﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<PagedList<zeus.Core.Test>>" %>
<%@ Import Namespace="Webdiyer.WebControls.Mvc" %>

<div id="dvOrders">
    <table class="datatable">
        <caption>
            Listado Test</caption>
        <thead>
            <tr>
                <th>
                    Nombre
                </th>
                <th>
                    Direccion
                </th>
                <th>
                    Telefono
                </th>
                <th>
                    Id
                </th>
            </tr>
        </thead>
        <% foreach (var item in Model)
           { %>
        <tr>
            <td>
                <%= Html.Encode(item.Nombre) %>
            </td>
            <td>
                <%= Html.Encode(item.Direccion) %>
            </td>
            <td>
                <%= Html.Encode(item.Telefono) %>
            </td>
            <td>
                <a href="CreateTest" class="nyroModal"><%= Html.Encode(item.Id) %></a>
            </td>
        </tr>
        <% } %>
    </table>    
        
    <%=Html.AjaxPager(Model, new PagerOptions() { PageIndexParameterName = "id", 
            ShowDisabledPagerItems = false, ShowPageIndexBox = true, 
            PageIndexBoxType = PageIndexBoxType.DropDownList, ShowGoButton = false }, 
        new AjaxOptions() { UpdateTargetId = "dvOrders", OnBegin = "AjaxStart", OnComplete = "AjaxStop" })%>

</div>
